@import './base.css';

/* 全局字体设置 */
* {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#app {
  margin: 0;
  padding: 0;
  font-weight: normal;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #f5f7fa;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f5f7fa;
}

html {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* 链接样式 */
a,
.green {
  text-decoration: none;
  color: #667eea;
  transition: all 0.3s ease;
  padding: 3px;
}

@media (hover: hover) {
  a:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Element Plus 组件样式覆盖 */
.el-button--primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.el-button--primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* 卡片阴影效果 */
.el-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 12px;
}

/* 表格样式 */
.el-table {
  border-radius: 8px;
  overflow: hidden;
}

.el-table th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
}

/* 输入框样式 */
.el-input__wrapper {
  border-radius: 8px;
  transition: all 0.3s ease;
}

.el-input__wrapper:hover {
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.el-input__wrapper.is-focus {
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 响应式断点 */
@media (max-width: 768px) {
  #app {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  #app {
    font-size: 13px;
  }
}
